package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 订单管理对象 orders
 * 
 * @author chen
 * @date 2022-11-03
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String uuid;

    /** 订单支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 订单收货地址 */
    @Excel(name = "订单收货地址")
    private Long userAddressId;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long status;

    /** 订单优惠券 */
    @Excel(name = "订单优惠券")
    private Long userCouponsId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setUuid(String uuid) 
    {
        this.uuid = uuid;
    }

    public String getUuid() 
    {
        return uuid;
    }
    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }
    public void setUserAddressId(Long userAddressId) 
    {
        this.userAddressId = userAddressId;
    }

    public Long getUserAddressId() 
    {
        return userAddressId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setUserCouponsId(Long userCouponsId) 
    {
        this.userCouponsId = userCouponsId;
    }

    public Long getUserCouponsId() 
    {
        return userCouponsId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("uuid", getUuid())
            .append("createTime", getCreateTime())
            .append("payTime", getPayTime())
            .append("userAddressId", getUserAddressId())
            .append("status", getStatus())
            .append("userCouponsId", getUserCouponsId())
            .toString();
    }
}
